package com.smart.manager.wiki.entities.models;

import com.smart.common.annotation.DictTranslator;
import com.smart.common.entities.core.BaseLongModel;
import com.smart.common.entities.option.SelectOption;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;

/**
 * 系统管理-模块信息表
 *
 * @author Administrator
 * @TableName system_module
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
public class WikiDocStrategy extends BaseLongModel {


    @ApiModelProperty("攻略标题")
    private String title;

    @ApiModelProperty("攻略banner图")
    private String banner;

    @ApiModelProperty("攻略分类标识")
    private String kind;


    @DictTranslator(dictCode = "StrategyKind" ,sourceField = "kind")
    @ApiModelProperty("攻略类型翻译")
    private transient SelectOption kindDecode ;

    @ApiModelProperty("协议正文")
    private String content;

    @ApiModelProperty("显示排序")
    private Integer sort;

    @ApiModelProperty("阅读次数")
    private Integer readCount;


}
